package org.huntaway.material.cleaner.manager.model.imp;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Observable;
import java.util.Observer;

import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import org.huntaway.material.cleaner.bean.TagsBean;
import org.huntaway.material.cleaner.manager.McManager;
import org.huntaway.material.cleaner.manager.model.ManagerVisitable;
import org.huntaway.material.cleaner.manager.model.ManagerVisitor;
import org.huntaway.material.cleaner.util.TagsUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TagsManager extends McManager implements ManagerVisitable,
		Observer {
	private final static Logger logger = LoggerFactory
			.getLogger(TagsManager.class);
	TagsUtil tagsUtil=new TagsUtil();
	private Map<String, TagsBean> tagMap = null;

	public void accept(ManagerVisitor visitor) {
		buildTag(curr.getCurrDir());
	}

	private void buildTag(String currDir) {
		tagMap=tagsUtil.buildTag(config.getTagDocument());
		
	}

	

	@Override
	public void show() {
		logger.info("");
	}

	@Override
	public void doIt() {
		logger.info("");
	}

	public void update(Observable o, Object arg) {
		// TODO Auto-generated method stub

	}

}
